package com.human.controller;


import com.human.entity.Nation;
import com.human.entity.ResultVo;
import com.human.service.INationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 民族 前端控制器
 * </p>
 *
 * @author jzq
 * @since 2023-02-27
 */
@RestController
@RequestMapping("/api/nation")
@Api(tags = "民族")
public class NationController {


    @Autowired
    INationService iNationService;

    @GetMapping("/nationList")
    @ApiOperation(value = "查询所有民族")
    public ResultVo<Nation> getAllNation() {
        return iNationService.getAllNation();
    }

}

